<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<script src="${ctx}/static/dwz/js/app.js" type="text/javascript"></script>
<div class="accordion" fillSpace="sidebar">
    <div class="accordionContent page-sidebar">
        <ul class="page-sidebar-menu">


            <security:authorize ifAnyGranted="ROLE_系统管理">

                <li <c:if test="${type == 'user'}">
                    class = "active"
                </c:if>
                >
                    <a href="javascript:;" class="sider-menu">
                        <i class="icon-dashboard"></i>
                        <span class="title ">系统管理</span>

                        <span class="arrow"></span>
                    </a>
                    <ul class="sub-menu">
                        <li><a href="${ctx}/account/user.action" target="navTab" rel="w_user">用户管理</a></li>
                        <li><a href="${ctx}/account/role.action" target="navTab" rel="w_role">角色管理</a></li>
                        <li><a href="${ctx}/log/log.action" target="navTab" rel="w_role">日志管理</a></li>

                    </ul>
                </li>


            </security:authorize>


            <security:authorize ifAnyGranted="ROLE_VIP管理">

                <li>
                    <a href="javascript:;" class="sider-menu">
                        <i class="icon-dashboard"></i>
                        <span class="title ">VIP管理</span>

                        <span class="arrow"></span>
                    </a>
                    <ul class="sub-menu">
                        <li><a href="${ctx}/vip/vip-user.action" target="navTab" rel="w_vip_user">VIP管理</a></li>

                    </ul>
                </li>


            </security:authorize>


            <security:authorize ifAnyGranted="ROLE_菜品管理">

                <li    <c:if test="${type == 'meal'}">
                    class = "active"
                </c:if>>
                    <a href="javascript:;" class="sider-menu">
                        <i class="icon-cogs"></i>
                        <span class="title ">菜品管理</span>

                        <span class="arrow"></span>
                    </a>
                    <ul class="sub-menu">
                        <li><a href="${ctx}/foodType/food-type.action" target="navTab" rel="w_foodType">菜品类型管理</a></li>
                        <li><a href="${ctx}/food/food.action" target="navTab" rel="w_food">菜品管理</a></li>
                    </ul>
                </li>
            </security:authorize>


            <security:authorize ifAnyGranted="ROLE_餐桌管理">

                <li    <c:if test="${type == 'desk'}">
                    class = "active"
                </c:if>>
                    <a href="javascript:;" class="sider-menu">
                        <i class="icon-cogs"></i>
                        <span class="title ">餐桌管理</span>

                        <span class="arrow"></span>
                    </a>
                    <ul class="sub-menu">
                        <li><a href="${ctx}/deskShop/desk-shop.action" target="navTab" rel="w_deskShop">餐桌管理</a></li>
                        <li><a href="${ctx}/deskShop/desk-shop-order-info.action" target="navTab" rel="w_deskShopOrderInfo">餐桌预定管理</a></li>
                    </ul>
                </li>
            </security:authorize>


            <security:authorize ifAnyGranted="ROLE_订单管理">

                <li <c:if test="${type == 'order'}">
                    class = "active"
                </c:if>
                >
                    <a href="javascript:;" class="sider-menu">
                        <i class="icon-cogs"></i>
                        <span class="title ">订单管理</span>

                        <span class="arrow"></span>
                    </a>
                    <ul class="sub-menu">
                        <li><a href="${ctx}/order/meal-order.action" target="navTab" rel="w_meal_order">订单管理</a></li>
                    </ul>
                </li>


            </security:authorize>


            <security:authorize ifAnyGranted="ROLE_后厨订单">

                <li <c:if test="${type == 'order'}">
                    class = "active"
                </c:if>>
                    <a href="javascript:;" class="sider-menu">
                        <i class="icon-cogs"></i>
                        <span class="title ">后厨订单</span>

                        <span class="arrow"></span>
                    </a>
                    <ul class="sub-menu">
                        <li><a href="${ctx}/order/meal-order.action?type=1" target="navTab"
                               rel="w_meal_order">后厨订单管理</a></li>
                    </ul>
                </li>


            </security:authorize>


            <security:authorize ifAnyGranted="ROLE_销售统计">


                <li    <c:if test="${type == 'statistic'}">
                    class = "active"
                </c:if>
                >
                    <a href="javascript:;" class="sider-menu">
                        <i class="icon-cogs"></i>
                        <span class="title ">销售统计</span>

                        <span class="arrow"></span>
                    </a>
                    <ul class="sub-menu">
                        <li><a href="${ctx}/statistic/statistic!xse.action" target="navTab" rel="w_statistic">销售统计</a></li>
                    </ul>
                </li>
            </security:authorize>

        </ul>

    </div>
</div>
